package com.quartz.springbootquartz.simple;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * 具体执行业务流程的类
 */
public class MyJob2 implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        Object name = jobExecutionContext.getJobDetail().getJobDataMap().get("name");
        System.out.println("job——————2——————:执行了 --> " + name);
    }
}